import Vue from 'vue'
import configs from '@/config/index.js'
import methods from '@/plugins/global/methods.js'
// 全局路由拦截
import '@/plugins/router'


const install = function(Vue, options) {
	Vue.prototype.$config = configs



	// 2. 添加全局方法 
	Object.keys(methods).forEach(v => {
		Vue.prototype['$' + v] = methods[v]
	})

}

export default {
	install
};
